/**
 * Created by 高子峰 on 2017/8/2.
 */
'use strict';

require('./index.css');
var navSide = require('page/common/nav-simple/index.js');
var _mm = require('util/mm.js');

$(function(){
    var type     = _mm.getUrlParam('type') || 'default',
        $element = $('.'+type+'-success');
    if(type === 'payment'){
        var orderNumber = _mm.getUrlParam('orderNumber'),
            $orderNumber = $element.find('.order-number');
        $orderNumber.attr('href',$orderNumber.attr('href') + $orderNumber);    //jQuery attr() 方法设置或返回被选元素的属性值
    }
    //显示对应的提示元素
    $element.show();    //jQuery的show()方法，与hide()对相应，用来显示和隐藏选中的元素
})